package edu.spec.dengyan.week08.class02;

/**
 * Author       : Dengyan
 * Date         : 2018/10/11 23:19
 * Description  : “TestOne”类
 */
//建立测试类TestOne，在main方法里实例化一头北极熊，运行它的wholeLife方法，
//输出运行结果，实例化一只青蛙，运行它的wholeLife方法。
public class TestOne {
    public static void main(String[] agrs){
        Animal Pole=new Bear("筱筱","fish","America",5);
        Pole.wholeLife();
        System.out.println(Pole.wholeLife());
        Animal f=new Frog("青青","蚊子","Chine");
        f.wholeLife();
        System.out.println(f.wholeLife());
    }
}
